//
//  JKCountDownButton.h
//  YijiaHealth-iOS
//
//  Created by Mac on 2022/1/6.
//  Copyright © 2022 YaoqiHao. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class JKCountDownButton;
typedef NSString* (^CountDownChanging)(JKCountDownButton *countDownButton,NSUInteger second);
typedef NSString* (^CountDownFinished)(JKCountDownButton *countDownButton,NSUInteger second);
typedef void (^TouchedCountDownButtonHandler)(JKCountDownButton *countDownButton,NSInteger tag);

@interface JKCountDownButton : UIButton
@property(nonatomic,strong) id userInfo;
///倒计时按钮点击回调
- (void)countDownButtonHandler:(TouchedCountDownButtonHandler)touchedCountDownButtonHandler;
//倒计时时间改变回调
- (void)countDownChanging:(CountDownChanging)countDownChanging;
//倒计时结束回调
- (void)countDownFinished:(CountDownFinished)countDownFinished;
///开始倒计时
- (void)startCountDownWithSecond:(NSUInteger)second;
///
- (void)CountDown;
///停止倒计时
- (void)stopCountDown;
@end

NS_ASSUME_NONNULL_END
